/**
 * 任务模块
 */
import makeApi from '../utils/services';

export const api = {
	getList: {
        url: '/api/task/list',
        defaultParams: { searchkey: '' },
    },
    forUploadTaskList: {
        url: '/api/task/uncompleted',
        defaultParams: { searchkey: '' },
    },
	detail: {
        url: '/api/task/detail'
    },
	complete: { 
        url: '/api/task/complete'
    },
	restart: {
        url: '/api/task/restart'
    },
	createTask: {
        url: '/api/task/save'
    },
	saveinfo: {
        url: '/api/task/saveinfo'
    },
	repeatType: {
        url: '/api/task/repeattype'
    },
	aheadType: {
        url: '/api/task/aheadtype'
    },
    alarmTaskList: {
        url: '/api/task/tasklist'
    },
	saveRemind: {
        url: '/api/task/savereminder'
    },
    addMember: {
        url: '/api/task/addmember'
    },
    deleteMember: {
        url: '/api/task/deletemember'
    },
    setManager: {
        url: '/api/task/setmanager'
    },
    setHost: {
        url: '/api/task/sethost'
    },
    saveFile: {
        url: '/api/task/addfile'
    },
    refleshFile: {
        url: '/api/task/getfiles'
    },
    deleteTaskFiles: {
        url: '/api/task/deletefile'
    },
    renameTaskFile: {
        url: '/api/task/renamefile'
    },
    copyTaskFile: {
        url: '/api/task/filemerge'
    },
    uploadFiles: {
        url: '/api/file/uploadfiles'
    },
    viewFile: {
        url: '/api/task/viewfile'
    },
};

const services = makeApi(api);

// 如果要定制重写某个请求接口可以在这里设置

export default services;
